import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: "/",
    redirect: "/login"
  },
  {
    name: "Home",
    path: "/home",
    component: () => import("@/views/hua-home.vue"),
    meta: { isShow: true }
  },
  {
    name: "LiCai",
    path: "/licai",
    component: () => import("@/views/hua-licai.vue"),
    meta: { isShow: true }
  },
  {
    name: "Shopping",
    path: "/shopping",
    component: () => import("@/views/hua-shopping.vue"),
    meta: { isShow: true }
  },
  {
    name: "Info",
    path: "/info",
    component: () => import("@/views/hua-info.vue"),
    meta: { isShow: true }
  },
  {
    name: "My",
    path: "/my",
    component: () => import("@/views/hua-my.vue"),
    meta: { isShow: true }
  },
  {
    name: "Register",
    path: "/register",
    component: () => import("@/pages/register.vue"),
    meta: { isShow: false }
  },
  {
    name: "Login",
    path: "/login",
    component: () => import("@/pages/login.vue"),
    meta: { isShow: false }
  },
  {
    name: "Payma",
    path: "/payma",
    component: () => import("@/pages/payma.vue"),
    meta: { isShow: false }
  },
  {
    name: "Shouma",
    path: "/shouma",
    component: () => import("@/pages/shouma.vue"),
    meta: { isShow: false }
  },
  {
    name: "Saoma",
    path: "/saoma",
    component: () => import("@/pages/saoma.vue"),
    meta: { isShow: false }
  }

]

const router = new VueRouter({
  routes
})
export default router
